<?php
return array(
    'runHandlers'=>array(
        '@' => array(
            'handler'=>'RedirectOnDataHandler',
            'params'=>array(
                'onFalse'=>'@authUser',
                'url'=>'/login/'
            ),
        ),
        'changePassword' => array(
            'handler'=>'user/ChangePasswordHandler',
            'params'=>array(
                'userObj'=>'@authUser',
                'action'=>$_POST['action'],
                'password'=>$_POST['password'],
                'newpassword_1'=>$_POST['newpassword_1'],
                'newpassword_2'=>$_POST['newpassword_2'],
            ),
        ),
        '@1' => array(
            'handler'=>'RedirectOnDataHandler',
            'params'=>array(
                'onTrue'=>'@changePassword',
                'url'=>'/profile/change-pwd-ok'
            ),
        ),
    ),
);    